import axios, { baseURL } from "./http";

export async function orderTicket(staffId: number, conversationId: number): Promise<any> {
  const result = await axios.post(`${baseURL}/orderTicket`, {
    staff_id: staffId,
    conversation_id: conversationId,
  });
  return result;
}


export async function setTicketStaff(staffId: number, conversationId: number): Promise<any> {
  const result = await axios.post(`${baseURL}/setTicketStaff`, {
    staff_id: staffId,
    conversation_id: conversationId,
  });
  return result;
}

export async function evaluate(conversationId: number, score: number, infoId: number): Promise<any> {
  const result = await axios.post(`${baseURL}/evaluate`, {
    conversation_id: conversationId,
    score,
    info_id: infoId
  });
  return result;
}